<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link href="/css/layui.css" rel="stylesheet" media="all">
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="id" name="id" th:value="${farmRoom.id}" type="hidden">
                        <input id="shopId" style="display: none;" name="shopId" th:value="${farmRoom.shopId}" class="form-control"
                               type="text">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">房间名称：</label>
                            <div class="col-sm-8">
                                <input id="name" name="name" th:value="${farmRoom.roomName}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">图片：</label>
                            <div class="col-sm-6">
                                <button type="button" class="layui-btn layui-btn-normal" id="testList">选择图片</button>
                                <button type="button" class="layui-btn layui-btn-normal" id="shangchuan">上传图片</button>
                                <div class="layui-upload-list">
                                    <table class="layui-table">
                                        <thead>
                                        <tr>
                                            <th>图片名字</th>
                                            <th>大小</th>
                                            <th>状态</th>
                                            <th>操作</th>
                                        </tr>
                                        </thead>
                                        <tbody id="demoList"></tbody>
                                    </table>
                                </div>
                                <div class="col-auto">
                                    <img style="height: 200px" id="roomPhotos" th:src="${farmRoom.roomPhotos}" class="form-control"/>
                                    <!--<input id="scenicpicture" name="scenicpicture" th:value="${scenic.scenicpicture}"
                                           class="form-control" type="text">-->
                                </div>
                            </div>
                        </div>
                        <input type="text" id="imgUrls" name="roomPhotos" style="display: none;" class="layui-input">
                        <!--<div class="form-group">
                            <label class="col-sm-3 control-label">房间图片：</label>
                            <div class="col-sm-8">
                                <input id="roomPhotos" name="roomPhotos" th:value="${farmRoom.roomPhotos}"
                                       class="form-control" type="text">
                            </div>
                        </div>-->
                        <div class="form-group">
                            <label class="col-sm-3 control-label">房间价格：</label>
                            <div class="col-sm-8">
                                <input id="price" name="price" th:value="${farmRoom.rackPrice}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">是否包含早餐：</label>
                            <div class="col-sm-2">
                                <select class="form-control m-b " name="breakfast">
                                    <option value=2 th:selected="${farmRoom.breakfast==2}">否</option>
                                    <option value=1 th:selected="${farmRoom.breakfast==1}">是</option>
                                </select>
                            </div>
                        </div>
                        <!--<div class="form-group">
                            <label class="col-sm-3 control-label">是否包含早餐：</label>
                            <div class="col-sm-8">
                                <input id="breakfast" name="breakfast" th:value="${farmRoom.breakfast}"
                                       class="form-control"
                                       type="text">
                            </div>
                        </div>-->
                        <div class="form-group">
                            <label class="col-sm-3 control-label">是否有空调：</label>
                            <div class="col-sm-2">
                                <select class="form-control m-b " name="airConditioner">
                                    <option value=2 th:selected="${farmRoom.airConditioner==2}">否</option>
                                    <option value=1 th:selected="${farmRoom.airConditioner==1}">是</option>
                                </select>
                            </div>
                        </div>
                        <!--<div class="form-group">
                            <label class="col-sm-3 control-label">是否有空调：</label>
                            <div class="col-sm-8">
                                <input id="airConditioner" name="airConditioner" th:value="${farmRoom.airConditioner}"
                                       class="form-control" type="text">
                            </div>
                        </div>-->
                        <div class="form-group">
                            <label class="col-sm-3 control-label">床规格类型：</label>
                            <div class="col-sm-8">
                                <input id="bedType" name="bedType" th:value="${farmRoom.bedType}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">是否有空调：</label>
                            <div class="col-sm-2">
                                <select class="form-control m-b " name="wifi">
                                    <option value=2 th:selected="${farmRoom.wifi==2}">否</option>
                                    <option value=1 th:selected="${farmRoom.wifi==1}">是</option>
                                </select>
                            </div>
                        </div>
                        <!--<div class="form-group">
                            <label class="col-sm-3 control-label">是否支持wifi：</label>
                            <div class="col-sm-8">
                                <input id="wifi" name="wifi" th:value="${farmRoom.wifi}" class="form-control"
                                       type="text">
                            </div>
                        </div>-->
                        <div class="form-group">
                            <label class="col-sm-3 control-label">是否有空调：</label>
                            <div class="col-sm-2">
                                <select class="form-control m-b " name="baggageDeposit">
                                    <option value=2 th:selected="${farmRoom.baggageDeposit==2}">否</option>
                                    <option value=1 th:selected="${farmRoom.baggageDeposit==1}">是</option>
                                </select>
                            </div>
                        </div>
                        <!--<div class="form-group">
                            <label class="col-sm-3 control-label">行李寄存：</label>
                            <div class="col-sm-8">
                                <input id="baggageDeposit" name="baggageDeposit" th:value="${farmRoom.baggageDeposit}"
                                       class="form-control" type="text">
                            </div>
                        </div>-->
                        <div class="form-group">
                            <label class="col-sm-3 control-label">房间规格：</label>
                            <div class="col-sm-8">
                                <input id="roomType" name="roomType" th:value="${farmRoom.roomType}"
                                       class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">入住人数：</label>
                            <div class="col-sm-8">
                                <input id="checkinNumber" name="checkinNumber" th:value="${farmRoom.checkinNumber}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">是否有空调：</label>
                            <div class="col-sm-2">
                                <select class="form-control m-b " name="updownStatus">
                                    <option value=2 th:selected="${farmRoom.updownStatus==2}">否</option>
                                    <option value=1 th:selected="${farmRoom.updownStatus==1}">是</option>
                                </select>
                            </div>
                        </div>
                        <!--<div class="form-group">
                            <label class="col-sm-3 control-label">房间上下架：</label>
                            <div class="col-sm-8">
                                <input id="updownStatus" name="updownStatus" th:value="${farmRoom.updownStatus}"
                                       class="form-control" type="text">
                            </div>
                        </div>-->
                        <div class="form-group">
                            <label class="col-sm-3 control-label">房间状态 是否被入住：</label>
                            <div class="col-sm-8">
                                <input id="status" name="status" th:value="${farmRoom.status}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                       <!-- <div class="form-group">
                            <label class="col-sm-3 control-label">房间描述：</label>
                            <div class="col-sm-8">
                                <input id="roomDescribe" name="roomDescribe" th:value="${farmRoom.roomDescribe}"
                                       class="form-control" type="text">
                            </div>
                        </div>-->
                        <div class="form-group">
                            <label class="col-sm-3 control-label">房间介绍：</label>
                            <div class="col-sm-8">
                                <textarea class="form-control" th:utext="${farmRoom.roomDescribe}" name="roomDescribe" id="roomDescribe"
                                          placeholder="房间介绍" aria-describedby="sizing-addon1"></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-6">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script src="/js/content.js?v=1.0.0"></script>
<script src="/js/layui.js"></script>
<script src="/js/plugins/clipboard/clipboard.min.js"></script>
<script src="/js/plugins/layer/layer.min.js"></script>
<script type="text/javascript" src="/js/appjs/farm/farmRoom/edit.js">
</script>
</body>
</html>
